
package com.uchedao.seller.module.car;

import java.io.Serializable;

/**
 * 车型 如轿车，汽车等
 *
 * @author liwt@273.cn
 * @update 2013-06-13
 */
public class CarType implements Serializable {
    /**
     * 序列化ID
     */
    private static final long serialVersionUID = 1L;

    public static final String TABLE_NAME = "car_type";

    /**
     * 数据库中的字段ID
     **/
    public static final String ID = "id";

    /**
     * 数据库中的字段 简写
     **/
    public static final String SPELL = "spell";

    /**
     * 数据库中的字段 名称
     **/
    public static final String NAME = "name";

    /**
     * 查询CarItem的数据
     **/
    public static final String SEARCH_CAR_ITEM = "select * from " + TABLE_NAME + " order by " + ID
            + " ;";

    private int id = 0;

    /**
     * 皮卡，轿车等的值
     **/
    private String text = "";

    /**
     * PU,BS等的值
     **/
    private String spell = "";

    private boolean isSelected = false;

    public boolean isSelected() {
        return isSelected;
    }

    public void setIsSelected(boolean isSelected) {
        this.isSelected = isSelected;
    }

    public CarType() {
        super();
    }

    public CarType(int id, String name, String spell) {
        super();
        this.id = id;
        this.text = name;
        this.spell = spell;
    }

    public CarType(String name, String spell) {
        super();
        this.text = name;
        this.spell = spell;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return text;
    }

    public void setName(String name) {
        this.text = name;
    }

    public String getSpell() {
        return spell;
    }

    public void setSpell(String spell) {
        this.spell = spell;
    }

    @Override
    public String toString() {
        return "CarItem [id=" + id + ", name=" + text + ", spell=" + spell + "]";
    }

}
